<script setup>
import axios from "axios"
import { onMounted, ref } from "vue"
let tat = ref("")
onMounted(() => {
    axios.get("api/ps").then(res => {
        tat.value = res.data.data
    })
})
</script>
<template>
    <div class="ay">
    <div class="ldh" v-for="item in tat">
        <div>订单编号：20231102112201</div>
        <div v-for="item in tat" class="lsl">
            <img :src="item.img" alt="">
            <div class="hyh">
                <span>{{ item.name }}</span>
                <div class="shijian">待接单：{{ item.shijian }}</div>
            </div>
            <div class="shu">
                <span>￥{{ item.danjia }}</span>
                <span>x{{ item.geshu }}</span>
            </div>
        </div>
    </div>
    <div class="ldh" v-for="item in tat">
        <div>订单编号：20231102112201</div>
        <div v-for="item in tat" class="lsl">
            <img :src="item.img" alt="">
            <div class="hyh">
                <span>{{ item.name }}</span>
                <div class="shijian">待接单：{{ item.shijian }}</div>
            </div>
            <div class="shu">
                <span>￥{{ item.danjia }}</span>
                <span>x{{ item.geshu }}</span>
            </div>
        </div>
    </div>
</div>
</template>
<style scoped>
.ay{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ldh{
    width: 90%;
    padding: 10px;
    display: flex;
    margin: 20px;
    flex-direction: column;
    background-color: white;
    border-radius: 10px 10px 10px 10px;
}
.lsl {
    display: flex;
    gap: 10px;
}
.hyh {
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.shu {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 50px;
}</style>
